package com.ruoyi.system.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 公共设施档案对象 property_facility
 * 
 * @author ruoyi
 * @date 2025-10-27
 */
public class PropertyFacility extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 设施ID */
    private Long facilityId;

    /** 所属楼盘 */
    @Excel(name = "所属楼盘")
    private Long buildingId;

    /** 设施名称 */
    @Excel(name = "设施名称")
    private String facilityName;

    /** 类型：ELEVATOR/WATER_PUMP/MONITOR */
    @Excel(name = "类型：ELEVATOR/WATER_PUMP/MONITOR")
    private String facilityType;

    /** 位置 */
    @Excel(name = "位置")
    private String location;

    /** 型号 */
    @Excel(name = "型号")
    private String model;

    /** 安装时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "安装时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date installTime;

    /** 状态：NORMAL/FAULT */
    @Excel(name = "状态：NORMAL/FAULT")
    private String status;

    public void setFacilityId(Long facilityId) 
    {
        this.facilityId = facilityId;
    }

    public Long getFacilityId() 
    {
        return facilityId;
    }

    public void setBuildingId(Long buildingId) 
    {
        this.buildingId = buildingId;
    }

    public Long getBuildingId() 
    {
        return buildingId;
    }

    public void setFacilityName(String facilityName) 
    {
        this.facilityName = facilityName;
    }

    public String getFacilityName() 
    {
        return facilityName;
    }

    public void setFacilityType(String facilityType) 
    {
        this.facilityType = facilityType;
    }

    public String getFacilityType() 
    {
        return facilityType;
    }

    public void setLocation(String location) 
    {
        this.location = location;
    }

    public String getLocation() 
    {
        return location;
    }

    public void setModel(String model) 
    {
        this.model = model;
    }

    public String getModel() 
    {
        return model;
    }

    public void setInstallTime(Date installTime) 
    {
        this.installTime = installTime;
    }

    public Date getInstallTime() 
    {
        return installTime;
    }

    public void setStatus(String status) 
    {
        this.status = status;
    }

    public String getStatus() 
    {
        return status;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("facilityId", getFacilityId())
            .append("buildingId", getBuildingId())
            .append("facilityName", getFacilityName())
            .append("facilityType", getFacilityType())
            .append("location", getLocation())
            .append("model", getModel())
            .append("installTime", getInstallTime())
            .append("status", getStatus())
            .append("createTime", getCreateTime())
            .toString();
    }
}
